package com.navi.loaddata.core.mysqlEntity;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Objects;

public class WppShtOpePK implements Serializable {
    private String glassId;
    private String panelId;

    @Column(name = "glass_id")
    @Id
    public String getGlassId() {
        return glassId;
    }

    public void setGlassId(String glassId) {
        this.glassId = glassId;
    }

    @Column(name = "panel_id")
    @Id
    public String getPanelId() {
        return panelId;
    }

    public void setPanelId(String panelId) {
        this.panelId = panelId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        WppShtOpePK that = (WppShtOpePK) o;
        return Objects.equals(glassId, that.glassId) &&
                Objects.equals(panelId, that.panelId);
    }

    @Override
    public int hashCode() {

        return Objects.hash(glassId, panelId);
    }
}
